package com.jason.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jason.demo.dao.IUserRepository;
import com.jason.demo.entity.User;
import com.jason.demo.service.IUserService;

@Service
public class UserServiceImpl implements IUserService {
	// 自动装配
	@Autowired
	private IUserRepository userRepository;
	
	@Override
	public void insert(User user) {
		userRepository.save(user);
	}

}
